package com.flowable.project.controller;

import com.flowable.project.model.request.SendHttpModel;
import com.flowable.project.service.OpenApiService;
import com.flowable.project.util.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther: admin
 * @Date: 2021/11/17 20:18
 * @Description:
 */
@RestController
@RequestMapping("/pub/v1/pri/openapi")
public class OpenApiController {
    @Autowired
    private OpenApiService openApiService;

    @PostMapping("/test")
    public JsonData sendHttp(@RequestBody SendHttpModel sendHttpModel){

        return openApiService.sendHttp(sendHttpModel);
    }
}
